# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=svls
pkgver=0.2.11
pkgrel=0
pkgdesc="SystemVerilog language serer"
url="https://github.com/dalance/svls"
arch="all"
license="MIT"
makedepends="cargo cargo-auditable"
subpackages="$pkgname-doc"
source="https://github.com/dalance/svls/archive/v$pkgver/svls-$pkgver.tar.gz"

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/svls -t "$pkgdir"/usr/bin

	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/svls/LICENSE
}

sha512sums="
5cc75c80d752ea3fc7dd13aefde368425221f0572f055699f2c46c6afd4ee66322f5a76fb151050f59b2a0d537b9e96dde8874680ae8983397e5ddecddcfd14c  svls-0.2.11.tar.gz
"
